<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    
  </body>
  <script type="application/narcissus">
          /*
     * In window A's scripts, with A being on <http://example.com:8080>:
     */

      var popup = window.open("http://localhost:8081/NarcissusTest/postMessage2.html");

    popup.postMessage("testMessage",
                      "http://localhost:8081/NarcissusTest/postMessageTest.html")


    function receiveMessage(event)
    {
      document.write("got a reply");
    }
    window.addEventListener("message", receiveMessage, false);
  </script>
</html>
